﻿Imports System.Data

Partial Class str_ticket
    Inherits System.Web.UI.Page

    Protected Sub Page_LoadComplete(sender As Object, e As EventArgs) Handles Me.LoadComplete
        Dim lastTicketID As String = 0
        'Get TID from Database
        Dim dv As DataView = TicketIDDataSource.Select(DataSourceSelectArguments.Empty)
        lastTicketID = dv(0)(0).ToString
        Session("Ticked_ID") = Integer.Parse(lastTicketID) + 1
        Label1.Text = Session("Ticked_ID")
        Response.Write(Session("Ticked_ID"))

        Session("Owner") = "KR Helpdesk"
        Session("Date_") = "- NA -"
        Session("Time_") = "null"

        Session("CreationDate") = "Format Date to KAYAKO"

        ' TicketIDDataSource.SelectCommand = "SELECT [FullName] FROM [user_info] where username = " & Session("AccountName")
        dv = EngrList.Select(DataSourceSelectArguments.Empty)
        Session("TicketCreator") = dv(0)(0).ToString



    End Sub

    Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

    End Sub
End Class
